<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <script src="../vue.js" type="text/javascript" charset="utf-8"></script>
    </head>
    <body>
        <div id="app">
            <ol>
                <!-- 创建一个 todo-item 组件的实例 -->
                <todo-item></todo-item>
            </ol>
        </div>
        <script type="text/javascript">
            // 定义名为 todo-item 的新组件
            Vue.component('todo-item', {
                template: '<li>这是个待办项</li>'
            })
            var app = new Vue({
                el: '#app'
            })
        </script>
    </body>
</html>